package com.xitang.common.bean;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("biz_category")
public class BizCategory extends Model<BizCategory> {
    @TableId(value = "category_code")
    @ExcelProperty(value = "分类编码", index = 0)
    private String categoryCode;
    @ExcelProperty(value = "分类名称", index = 1)
    private String categoryName;
    @ExcelProperty(value = "分类描述", index = 2)
    private String categoryDesc;
    @ExcelIgnore
    private Integer status = 1;

    @Override
    protected Serializable pkVal() {
        return this.categoryCode;
    }
}